package com.jyy.prefabricated.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jyy.prefabricated.entity.OrderInfo;
import com.jyy.prefabricated.entity.SysUser;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 渠道表(Channel)实体类
 *
 * @author mrl
 * @since 2021-07-17 14:51:46
 */
@Data
public class ChannelDto implements Serializable {
    private static final long serialVersionUID = 588482978092029718L;

    private Integer channelId;
    private Integer orderNum;
    private List<Integer> ids;
    private List<OrderInfo> orderList;
    private List<SysUser> customerList;
    private Integer customerNum;
    /**
     * 渠道编号
     */
    private String channelCode;
    /**
     * 渠道名字
     */
    private String channelName;
    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    /**
     * 更新时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;
    private int pageNum = 1;

    private int pageSize = 20;
}